package org.person.gift.clients.fallback;

import org.person.gift.clients.GiftClient;
import org.person.gift.util.AjaxResult;
import org.springframework.stereotype.Component;

/**
 * @Auther Stark
 * @Date 2024/02/20
 */
@Component
public class GiftClientFallback implements GiftClient {

    @Override
    public AjaxResult get(Long id) {
        return AjaxResult.me().setSuccess(false).setMessage("网络异常,请刷新重试!");
    }
}
